﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}
<blockquote class="layui-elem-quote news_search toolList" id="menus">
</blockquote>

    <div class="layui-row">
        <div class="layui-col-xs2">
            <ul id="tree" class="ztree"
                style="padding: 2px; border: 1px solid #ddd; overflow: auto;">
            </ul>
        </div>
        <div class="layui-col-xs10">
            <table class="layui-table"
                lay-data="{height: 'full-80', page:true, id:'mainList'}"
                lay-filter="list"  lay-size="sm">
                <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'TaskID', width:150}">TaskID</th>
                    <th lay-data="{field:'ProductionTaskCode', width:150}">ProductionTaskCode</th>
                    <th lay-data="{field:'TaskName', width:150}">TaskName</th>
                    <th lay-data="{field:'SpellName', width:150}">SpellName</th>
                    <th lay-data="{field:'RootID', width:150}">RootID</th>
                    <th lay-data="{field:'RootType', width:150}">RootType</th>
                    <th lay-data="{field:'TaskType', width:150}">TaskType</th>
                    <th lay-data="{field:'SelectType', width:150}">SelectType</th>
                    <th lay-data="{field:'OrganizeID', width:150}">OrganizeID</th>
                    <th lay-data="{field:'ChargeUser', width:150}">ChargeUser</th>
                    <th lay-data="{field:'LineID', width:150}">LineID</th>
                    <th lay-data="{field:'CustomerID', width:150}">CustomerID</th>
                    <th lay-data="{field:'BomID', width:150}">BomID</th>
                    <th lay-data="{field:'IssuedTime', width:150}">IssuedTime</th>
                    <th lay-data="{field:'StartTime', width:150}">StartTime</th>
                    <th lay-data="{field:'EndTime', width:150}">EndTime</th>
                    <th lay-data="{field:'ExportLogID', width:150}">ExportLogID</th>
                    <th lay-data="{field:'CreateUser', width:150}">CreateUser</th>
                    <th lay-data="{field:'CreateTime', width:150}">CreateTime</th>
                    <th lay-data="{field:'AuditUser', width:150}">AuditUser</th>
                    <th lay-data="{field:'AuditTime', width:150}">AuditTime</th>
                    <th lay-data="{field:'UpdateUser', width:150}">UpdateUser</th>
                    <th lay-data="{field:'UpdateTime', width:150}">UpdateTime</th>
                    <th lay-data="{field:'CloseUser', width:150}">CloseUser</th>
                    <th lay-data="{field:'CloseTime', width:150}">CloseTime</th>
                    <th lay-data="{field:'TaskStatus', width:150}">TaskStatus</th>
                    <th lay-data="{field:'RelationFlows', width:150}">RelationFlows</th>
                    <th lay-data="{field:'Files', width:150}">Files</th>
                    <th lay-data="{field:'Status', width:150}">Status</th>
                    <th lay-data="{field:'Description', width:150}">Description</th>
                    <th lay-data="{field:'CustomCode1', width:150}">CustomCode1</th>
                    <th lay-data="{field:'CustomCode2', width:150}">CustomCode2</th>
                    <th lay-data="{field:'CustomCode3', width:150}">CustomCode3</th>
                    <th lay-data="{field:'CustomCode4', width:150}">CustomCode4</th>
                    <th lay-data="{field:'CustomCode5', width:150}">CustomCode5</th>
                    <th lay-data="{field:'TaskE1', width:150}">TaskE1</th>
                    <th lay-data="{field:'TaskE2', width:150}">TaskE2</th>
                    <th lay-data="{field:'TaskE3', width:150}">TaskE3</th>
                    <th lay-data="{field:'TaskE4', width:150}">TaskE4</th>
                    <th lay-data="{field:'TaskE5', width:150}">TaskE5</th>
                    <th lay-data="{field:'TaskE6', width:150}">TaskE6</th>
                    <th lay-data="{field:'TaskE7', width:150}">TaskE7</th>
                    <th lay-data="{field:'TaskE8', width:150}">TaskE8</th>
                    <th lay-data="{field:'TaskE9', width:150}">TaskE9</th>
                    <th lay-data="{field:'TaskE10', width:150}">TaskE10</th>
                    <th lay-data="{field:'FlowCompleted', width:150}">FlowCompleted</th>
                    <th lay-data="{fixed: 'right', width:160, align:'center', toolbar: '#barList'}"></th>
                </tr>
                </thead>
            </table>
        </div>
    </div>

<script type="text/html" id="barList">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
</script>


<!--添加/编辑窗口-->
<div id="divEdit" style="display: none">
    <form class="layui-form" action=""  id="formEdit">
    <input type="hidden" name="TaskID" v-model="TaskID" />
    <div class="layui-form-item">
        <label class="layui-form-label">ProductionTaskCode</label>
        <div class="layui-input-block">
            <input type="text" name="ProductionTaskCode" v-model="ProductionTaskCode" required lay-verify="required"
                placeholder="ProductionTaskCode" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskName</label>
        <div class="layui-input-block">
            <input type="text" name="TaskName" v-model="TaskName" required lay-verify="required"
                placeholder="TaskName" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SpellName</label>
        <div class="layui-input-block">
            <input type="text" name="SpellName" v-model="SpellName" required lay-verify="required"
                placeholder="SpellName" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">RootID</label>
        <div class="layui-input-block">
            <input type="radio" name="RootID" value="1" title="value1" checked>
            <input type="radio" name="RootID" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">RootType</label>
        <div class="layui-input-block">
            <input type="radio" name="RootType" value="1" title="value1" checked>
            <input type="radio" name="RootType" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskType</label>
        <div class="layui-input-block">
            <input type="text" name="TaskType" v-model="TaskType" required lay-verify="required"
                placeholder="TaskType" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SelectType</label>
        <div class="layui-input-block">
            <input type="radio" name="SelectType" value="1" title="value1" checked>
            <input type="radio" name="SelectType" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">OrganizeID</label>
        <div class="layui-input-block">
            <input type="text" name="OrganizeID" v-model="OrganizeID" required lay-verify="required"
                placeholder="OrganizeID" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">ChargeUser</label>
        <div class="layui-input-block">
            <input type="text" name="ChargeUser" v-model="ChargeUser" required lay-verify="required"
                placeholder="ChargeUser" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">LineID</label>
        <div class="layui-input-block">
            <input type="radio" name="LineID" value="1" title="value1" checked>
            <input type="radio" name="LineID" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomerID</label>
        <div class="layui-input-block">
            <input type="radio" name="CustomerID" value="1" title="value1" checked>
            <input type="radio" name="CustomerID" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">BomID</label>
        <div class="layui-input-block">
            <input type="radio" name="BomID" value="1" title="value1" checked>
            <input type="radio" name="BomID" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">IssuedTime</label>
        <div class="layui-input-block">
            <input type="text" name="IssuedTime" v-model="IssuedTime" required lay-verify="required"
                placeholder="IssuedTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">StartTime</label>
        <div class="layui-input-block">
            <input type="text" name="StartTime" v-model="StartTime" required lay-verify="required"
                placeholder="StartTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">EndTime</label>
        <div class="layui-input-block">
            <input type="text" name="EndTime" v-model="EndTime" required lay-verify="required"
                placeholder="EndTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">ExportLogID</label>
        <div class="layui-input-block">
            <input type="radio" name="ExportLogID" value="1" title="value1" checked>
            <input type="radio" name="ExportLogID" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CreateUser</label>
        <div class="layui-input-block">
            <input type="text" name="CreateUser" v-model="CreateUser" required lay-verify="required"
                placeholder="CreateUser" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CreateTime</label>
        <div class="layui-input-block">
            <input type="text" name="CreateTime" v-model="CreateTime" required lay-verify="required"
                placeholder="CreateTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">AuditUser</label>
        <div class="layui-input-block">
            <input type="text" name="AuditUser" v-model="AuditUser" required lay-verify="required"
                placeholder="AuditUser" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">AuditTime</label>
        <div class="layui-input-block">
            <input type="text" name="AuditTime" v-model="AuditTime" required lay-verify="required"
                placeholder="AuditTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">UpdateUser</label>
        <div class="layui-input-block">
            <input type="text" name="UpdateUser" v-model="UpdateUser" required lay-verify="required"
                placeholder="UpdateUser" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">UpdateTime</label>
        <div class="layui-input-block">
            <input type="text" name="UpdateTime" v-model="UpdateTime" required lay-verify="required"
                placeholder="UpdateTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CloseUser</label>
        <div class="layui-input-block">
            <input type="text" name="CloseUser" v-model="CloseUser" required lay-verify="required"
                placeholder="CloseUser" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CloseTime</label>
        <div class="layui-input-block">
            <input type="text" name="CloseTime" v-model="CloseTime" required lay-verify="required"
                placeholder="CloseTime" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskStatus</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskStatus" value="1" title="value1" checked>
            <input type="radio" name="TaskStatus" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">RelationFlows</label>
        <div class="layui-input-block">
            <input type="text" name="RelationFlows" v-model="RelationFlows" required lay-verify="required"
                placeholder="RelationFlows" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Files</label>
        <div class="layui-input-block">
            <input type="text" name="Files" v-model="Files" required lay-verify="required"
                placeholder="Files" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Status</label>
        <div class="layui-input-block">
            <input type="radio" name="Status" value="1" title="value1" checked>
            <input type="radio" name="Status" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Description</label>
        <div class="layui-input-block">
            <input type="text" name="Description" v-model="Description" required lay-verify="required"
                placeholder="Description" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomCode1</label>
        <div class="layui-input-block">
            <input type="text" name="CustomCode1" v-model="CustomCode1" required lay-verify="required"
                placeholder="CustomCode1" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomCode2</label>
        <div class="layui-input-block">
            <input type="text" name="CustomCode2" v-model="CustomCode2" required lay-verify="required"
                placeholder="CustomCode2" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomCode3</label>
        <div class="layui-input-block">
            <input type="text" name="CustomCode3" v-model="CustomCode3" required lay-verify="required"
                placeholder="CustomCode3" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomCode4</label>
        <div class="layui-input-block">
            <input type="text" name="CustomCode4" v-model="CustomCode4" required lay-verify="required"
                placeholder="CustomCode4" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomCode5</label>
        <div class="layui-input-block">
            <input type="text" name="CustomCode5" v-model="CustomCode5" required lay-verify="required"
                placeholder="CustomCode5" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE1</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskE1" value="1" title="value1" checked>
            <input type="radio" name="TaskE1" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE2</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskE2" value="1" title="value1" checked>
            <input type="radio" name="TaskE2" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE3</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskE3" value="1" title="value1" checked>
            <input type="radio" name="TaskE3" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE4</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskE4" value="1" title="value1" checked>
            <input type="radio" name="TaskE4" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE5</label>
        <div class="layui-input-block">
            <input type="radio" name="TaskE5" value="1" title="value1" checked>
            <input type="radio" name="TaskE5" value="0" title="value2">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE6</label>
        <div class="layui-input-block">
            <input type="text" name="TaskE6" v-model="TaskE6" required lay-verify="required"
                placeholder="TaskE6" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE7</label>
        <div class="layui-input-block">
            <input type="text" name="TaskE7" v-model="TaskE7" required lay-verify="required"
                placeholder="TaskE7" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE8</label>
        <div class="layui-input-block">
            <input type="text" name="TaskE8" v-model="TaskE8" required lay-verify="required"
                placeholder="TaskE8" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE9</label>
        <div class="layui-input-block">
            <input type="text" name="TaskE9" v-model="TaskE9" required lay-verify="required"
                placeholder="TaskE9" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">TaskE10</label>
        <div class="layui-input-block">
            <input type="text" name="TaskE10" v-model="TaskE10" required lay-verify="required"
                placeholder="TaskE10" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">FlowCompleted</label>
        <div class="layui-input-block">
            <input type="radio" name="FlowCompleted" value="1" title="value1" checked>
            <input type="radio" name="FlowCompleted" value="0" title="value2">
        </div>
    </div>


     <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/userJs/productiontasks.js"></script>


